#!/bin/sh

tomcat_id=`ps -ef | grep hiv-backend-1.0.jar | grep -v "grep" | awk '{print $2}'`
echo $tomcat_id
for id in $tomcat_id
do
    kill -9 $id
    echo "killed $id"
done

nohup java -jar /root/hiv/hiv-backend-1.0.jar --spring.config.location=./application.properties > /root/hiv/nohup.out 2>&1 &
tailf nohup.out